package cn.livingCloud.dto.front;

import cn.livingCloud.entity.user.Member;

/**
 * Created by sujiantang on 2016/1/5.
 */
public class MemberInfoFrontFormDto {
    private String uuid;
    private String nickname;//用户昵称
    private String sex;//用户的性别，值为1时是男性，值为2时是女性，值为0时是未知
    private String province;//用户个人资料填写的省份
    private String city;//普通用户个人资料填写的城市
    private String country;//国家，如中国为CN
    private boolean state;//状态
    private String headimgurl;//头像
    private String redirectUrl;

    public MemberInfoFrontFormDto() {
    }

    public MemberInfoFrontFormDto(Member member) {
        this.uuid = member.getUuid();
        this.nickname = member.getNickname();
        this.sex = member.getSex();
        this.province = member.getProvince();
        this.city = member.getCity();
        this.country = member.getCountry();
        this.state = member.isState();
        this.headimgurl = member.getHeadimgurl();
    }

    public String getUuid() {
        return uuid;
    }

    public MemberInfoFrontFormDto setUuid(String uuid) {
        this.uuid = uuid;
        return this;
    }

    public String getNickname() {
        return nickname;
    }

    public MemberInfoFrontFormDto setNickname(String nickname) {
        this.nickname = nickname;
        return this;
    }

    public String getSex() {
        return sex;
    }

    public MemberInfoFrontFormDto setSex(String sex) {
        this.sex = sex;
        return this;
    }

    public String getProvince() {
        return province;
    }

    public MemberInfoFrontFormDto setProvince(String province) {
        this.province = province;
        return this;
    }

    public String getCity() {
        return city;
    }

    public MemberInfoFrontFormDto setCity(String city) {
        this.city = city;
        return this;
    }

    public String getCountry() {
        return country;
    }

    public MemberInfoFrontFormDto setCountry(String country) {
        this.country = country;
        return this;
    }

    public boolean isState() {
        return state;
    }

    public MemberInfoFrontFormDto setState(boolean state) {
        this.state = state;
        return this;
    }

    public String getHeadimgurl() {
        return headimgurl;
    }

    public MemberInfoFrontFormDto setHeadimgurl(String headimgurl) {
        this.headimgurl = headimgurl;
        return this;
    }

    public String getRedirectUrl() {
        return redirectUrl;
    }

    public MemberInfoFrontFormDto setRedirectUrl(String redirectUrl) {
        this.redirectUrl = redirectUrl;
        return this;
    }
}
